package test.example.controller.ajax.html.docs;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.util.RequestMap;

import test.example.service.DocumentService;

public class DocsFeedController extends Controller {

    @Override
    public Navigation run() throws Exception {
        DocumentService documentService = new DocumentService();
        String crawlSession = request.getParameter("crawlSession");
        String parentFolderId = request.getParameter("parentFolderId");
        requestScope("folderList", documentService.crawlGroupDocsFeed(request, response, crawlSession,parentFolderId));
        requestScope("crawlSession",request.getAttribute("crawlSession"));
        return forward("docsFeed.jsp");
    }
}
